
var is_invite=false;
var sTimer = setInterval(function(){
	if(typeof LR_showInviteDiv != "undefined"){
		var LR_showInviteDiv_o = LR_showInviteDiv;
		window.LR_showInviteDiv = function(){
			is_invite=true;
			//showSwt();
		}
		clearInterval(sTimer);
	}
},100);
    
/****中间弹窗代码_new****/
document.writeln("<style type=\"text\/css\">");
document.writeln(".absolute{position: absolute;}");
document.writeln(".swtCenter{display:block;    line-height: initial;}");
document.writeln(".swtCenter {display:block;width:255px;height:230px; background-color:#FFF;position:fixed;left:50%;top:50%;z-index:9999999;margin-left:-127px;margin-top:-130px;-moz-border-radius:15px;-webkit-border-radius:15px;border-radius:15px;-moz-box-shadow:0 0 20px rgba(10,2,4,0.75);-webkit-box-shadow:0 0 20px rgba(10,2,4,0.75);box-shadow:0 0 20px rgba(10,2,4,0.75);}");
document.writeln(".swtCenter h3 {    line-height: inherit;width:100%;font-size:24px;line-height:20px;text-align:center;color:#000;font-weight:500;margin-top:23px; margin-bottom:0px;}");
document.writeln(".swtCenter h4 {  color:#6a7380  line-height: inherit; padding-top:8px;width:100%;font-size:18px;font-weight:normal;text-align:center; margin:0px;}");
document.writeln(".swtCenter h4 span{color:red;    line-height: inherit;}");
document.writeln(".mfhd {width:227px;height:32px;border:1px solid #ccc;-moz-border-radius:17px;-webkit-border-radius:17px;border-radius:17px;margin:10px auto 10px;overflow:hidden;}");
document.writeln(".mfhd .txt {width:142px;height:30px;line-height:30px; background-color:#FFF;font-size:14px;color:#6a7380;-moz-border-radius:15px 0 0 15px;-webkit-border-radius:15px 0 0 15px;border-radius:15px 0 0 15px;padding-left:13px;float:left;outline:none;border: none;padding-right:0;}");
document.writeln(".mfhd .subbo{    line-height: inherit;-webkit-appearance:none;border:none;cursor: pointer;width:62px;height:32px;color:#fff; background-color:#D0862D;font-size:12px;text-align:center;text-decoration:none;-moz-border-radius:0 14px 14px 0;-webkit-border-radius:0 14px 14px 0;border-radius:0 14px 14px 0;float:right;}");
document.writeln(".swtCenter p {width:230px;font-size:14px;line-height:20px;color:#6a7380;margin:0 auto;text-align:center;}");
document.writeln(".swt_lists {bottom:0;left:0;width:100%;height:58px;line-height:58px;-moz-border-radius:0 0 15px 15px;-webkit-border-radius:0 0 15px 15px;border-radius:0 0 15px 15px;}");
document.writeln(".swt_lists a {    line-height: inherit;display:block;width:50%;height:100%;position:relative;float:left;}");
document.writeln(".swt_list1 { background-color:#930C08;-moz-border-radius:0 0 0 15px;-webkit-border-radius:0 0 0 15px;border-radius:0 0 0 15px;}");
document.writeln(".swt_list2 { background-color:#d0862d;-moz-border-radius:0 0 15px 0;-webkit-border-radius:0 0 15px 0;border-radius:0 0 15px 0;}");
document.writeln(".swt_lists a i,.swt_lists a em {    line-height: inherit;display:block;position:absolute;left:50%;color:#fff;text-decoration:none;}");
document.writeln(".swtCallIcon {top:50%;margin-left:-50px;margin-top:-13px;width:27px;height:27px; background:url(\/statics\/mobile\/images\/tc_05.gif) no-repeat;-moz-background-size:100%;-webkit-background-size:100%;background-size:100%;}");
document.writeln(".swt_lists em {height:100%;top:0;margin-left:-16px;font-size:16px;font-style:normal;}");
document.writeln(".swtLinkIcon {top:50%;margin-left:-50px;width:35px;height:35px;margin-top:-18px;background:url(\/statics\/mobile\/images\/tc_03.gif) no-repeat;-moz-background-size:100%;-webkit-background-size:100%;background-size:100%;}");
document.writeln(".swtLinkCounter {top:15px;width:14px;height:14px;margin-left:-34px;line-height:13px;text-align:center;font-size:9px;background-color:#e60012;-moz-border-radius:14px;-webkit-border-radius:14px;border-radius:14px;-moz-box-shadow:0 0 3px rgba(0,0,0,0.8);-webkit-box-shadow:0 0 3px rgba(0,0,0,0.8);box-shadow:0 0 3px rgba(0,0,0,0.8);z-index:3;font-style:normal;}");
document.writeln(".closeBtn_swt {right:-12px;top:-12px;width:44px;height:44px; background:url(\/statics\/mobile\/images\/closeBtn_swt.png) no-repeat;-moz-background-size:100%;-webkit-background-size:100%;background-size:100%;cursor:pointer;position: absolute;}");
document.writeln("<\/style>");
document.writeln("<div id=\"swtBox\" class=\"swtCenter relative\" style=\"display: none;\">");
document.writeln("    <span class=\"closeBtn_swt absolute\" onclick=\"hideSwt();\"><\/span>");
document.writeln("    <h3>御生堂在线咨询平台<\/h3>");
document.writeln("    <h4><span>京沪苏三甲名老中医</span>坐诊<\/h4>");
document.writeln("    <div class=\"mfhd clearfix\">");
document.writeln("<script type=\"text/javascript\" data-lxb-uid=\"24455570\" data-lxb-gid=\"370824\" src=\"http://lxbjs.baidu.com/api/asset/api.js?t=\' + new Date().getTime() + \'\" charset=\"utf-8\"></script>");
document.writeln("<input type=\"tel\" id=\"telinput\" value=\"请输入你的电话号码\" class=\"txt\" onclick=\"if(this.value=='请输入你的电话号码'){this.value='';}\" onblur=\"if(this.value==''){this.value='请输入你的电话号码';}\">");
document.writeln("<input type=\"submit\" value=\"免费回电\" id=\"callbtn\" class=\"subbo\">" );
document.writeln("    <\/div>");
document.writeln("    <p>*5秒内，我们立即给您回电！<\/p>");
document.writeln("<script>");
document.writeln("document.getElementById(\"callbtn\").onclick = function () {");
document.writeln("lxb.call(document.getElementById(\"telinput\"));");
document.writeln("};");
document.writeln("</script>");
document.writeln("    <div class=\"swt_lists absolute\">");
document.writeln("        <a  href=\"javascript:void(0);\" onclick=\"openZoosUrl('chatwin','&e=l_center');return false;\" target=\"_self\" class=\"swt_list1\"><i class=\"swtCallIcon\"><\/i><em>免费问诊<\/em><\/a>");
document.writeln("        <a href=\"tel:0512-62813866\" target=\"_self\" class=\"swt_list2\"><i class=\"swtLinkIcon\"><\/i><em>电话咨询<\/em><\/a>");
document.writeln("    <\/div>");
document.writeln("<\/div>");
/****中间弹窗代码_new****/

window.setTimeout("showSwt()", 20000);

/*主窗口*/
function showSwt(){
	if(is_invite){
		LR_RefuseChat();
		is_invite=false;
	}
	if(typeof jQuery != "undefined"){
		$("#swtBox").show(800);
	}else{
		document.getElementById("swtBox").style.display = 'block';	
	}
}

function hideSwt(){
	if(typeof jQuery != "undefined"){
		$("#swtBox").hide(800);
	}else{
		document.getElementById("swtBox").style.display = 'none';	
	}
	setTimeout(showSwt,50000);
}
/*
document.write("<div style=\"z-index:9999;position:fixed;right:0;top:18%;width:55px;height:55px;\"><a href=\"tel:051262813866\"><img width='55' height='55' src=\"/swt/images/zx.gif\"></a></div>");

document.writeln("<div class=\'gycenter_all\'>");
document.writeln("	<div class=\'gycenbox_all\'>");
document.writeln("		<h3>在线医生邀请通话沟通</h3>");
document.writeln("		<p><a href=\'tel:0512-62813866\'>0512-62813866</a></p>");
document.writeln("		<div class=\'phones\'>");
document.writeln("			<a href=\'tel:0512-62813866\' class=\'fl\'></a>");
document.writeln("			<a href=\'tel:0512-62813866\' class=\'fr\'>");
document.writeln("				<img src=\'/swt/images/phonegif.gif\' alt=\'\'>");
document.writeln("			</a>");
document.writeln("		</div>");
document.writeln("		<a href=\"javascript:void(0);return false;\" onclick=\"openZoosUrl(\'chatwin\',\'&amp;e=\'+escape(escape(\'中间大弹窗\')))\" class=\'buttonTc\'><img src=\'/swt/images/x.png\' alt=\'\'>在线咨询</a>");
document.writeln("");
document.writeln("		<div class=\'close\' onclick=\'closes();\'></div>");
document.writeln("	</div>");
document.writeln("</div>");
document.writeln("<div class=\'fullbg_all\'></div>");
document.writeln("");
document.writeln("<style>");
document.writeln(".fullbg_all { position: fixed; left:0; top:0; z-index:999999; width:100%; height:100%; background:rgba(0,0,0,.5); display:none;box-sizing: border-box;}");
document.writeln(".gycenter_all { position: fixed; left:-50%; top:-50%; margin:-145px 0 0 -145px; font-family: \'Microsoft yahei\'; z-index:99999999;  box-sizing: border-box;}");
document.writeln(".gycenbox_all { width:290px; height:360px; border-radius: 0.2rem; background: #fff url(/swt/images/swt_all_03.png) no-repeat; background-size: 100% 100%; position: relative; padding-top:190px; text-align: center;box-sizing: border-box;}");
document.writeln(".gycenbox_all.trans { animation:tran 3s; -webkit-animation:tran 3s;box-sizing: border-box;}");
document.writeln(".gycenbox_all.trans2 { animation:tran2 3s; -webkit-animation:tran2 3s;box-sizing: border-box;}");
document.writeln("@keyframes tran {");
document.writeln("0%   {transform:scale(0,0);}");
document.writeln("100% {transform:scale(1,1);}");
document.writeln("}");
document.writeln("@-webkit-keyframes tran {");
document.writeln("0%   {transform:scale(0,0);}");
document.writeln("100% {transform:scale(1,1);}");
document.writeln("}");
document.writeln("@keyframes tran2 {");
document.writeln("0%   {transform:scale(1,1);}");
document.writeln("100% {transform:scale(0,0);}");
document.writeln("}");
document.writeln("@-webkit-keyframes tran2 {");
document.writeln("0%   {transform:scale(1,1);}");
document.writeln("100% {transform:scale(0,0);}");
document.writeln("}");
document.writeln(".gycenbox_all h3 { font-size: 18px; color: #3d3d3d; font-weight: normal;box-sizing: border-box;margin:0 auto;}");
document.writeln(".gycenbox_all p{ text-align:center;box-sizing: border-box;margin:6px 0;}");
document.writeln(".gycenbox_all p a { font-size: 20px; color: #dc5a3d; font-family: \'Arial\';box-sizing: border-box;}");
document.writeln(".gycenbox_all .phones { margin-top: 13px; width: 120px; margin-left:185px;box-sizing: border-box;}");
document.writeln(".gycenbox_all .phones a,.gycenbox_all .phones a img { display: block; width:30px; box-sizing: border-box;}");
document.writeln(".gycenbox_all .phones a:first-child {}");
document.writeln("");
document.writeln(".gycenbox_all .buttonTc { box-sizing: border-box; float:left; width: 180px; height: 30px; line-height: 30px; background:#FAA012; color: #fff; font-size: 18px; border-radius:20px; margin-top: 28px; margin-left: 50px; padding-left:30px;}");
document.writeln(".gycenbox_all .buttonTc img{box-sizing: border-box; float:left; width: 25px; height: 25px; margin-top: 3px;margin-right: -30px;}");
document.writeln(".gycenbox_all .close {box-sizing: border-box; position: absolute; display: block; width: 1.375rem; height: 1.375rem; right: 0; top:0; cursor: pointer;}");
document.writeln(".gycenbox_all .docimg {box-sizing: border-box; position: absolute; display: block; width: 4rem; height: 4rem; top:0.75rem; left:4rem;}");
document.writeln("</style>");

function shows(){
	$('.gycenter_all').animate({"top":"40%","left":"50%"},3000);
	$('.fullbg_all').css("display","block");
	$('.gycenbox_all').removeClass("trans2");
	$('.gycenbox_all').addClass("trans");
	$('.fullbg_all').show();
}

setTimeout("shows()",60000);

function closes(){
	$('.gycenter_all').animate({"top":"150%","left":"150%"},3000);
	$('.gycenbox_all').removeClass("trans");
	$('.gycenbox_all').addClass("trans2");
	$('.fullbg_all').css("display","none");
	// setTimeout("shows()",70000);
}
*/
/*
document.writeln("<div style=\"position:fixed;left:3px;bottom: 30%;z-index: 3; width: 59px;\">");
document.writeln("<a href=\"javascript:void(0);return false;\" onclick=\"openZoosUrl(\'chatwin\',\'&amp;e=\'+escape(escape(\'右侧小弹窗\')))\"><img src=\"/swt/images/wys1.png\" style='width:100%;'></a>");
document.writeln("</div>");*/